package com.rimi.dao;

import com.rimi.bean.Video;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * InnoDB free: 11264 kB; (`user_id`) REFER `owl_video/user`(`user_id`); (`menu_id` Mapper 接口
 * </p>
 *
 * @author sky
 * @since 2018-06-06
 */
public interface VideoDao extends BaseMapper<Video> {

    Video getVideoById(@Param("id") Integer id);


    void collectVideo(@Param("userId") Integer userId, @Param("videoId") Integer videoId);

    List<Video> getVideoList();

    void updateHot(Video videoByIdFromCache);
}
